package com.shazhu.nongjt.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shazhu.common.annotation.Excel;
import com.shazhu.common.core.domain.BaseEntity;

/**
 * 合格证打印设置对象 sys_cert_print_setting
 * 
 * @author shazhu
 * @date 2025-09-29
 */
public class SysCertPrintSetting extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 设置名称（如：打印机合格证默认配置） */
    @Excel(name = "设置名称", readConverterExp = "如=：打印机合格证默认配置")
    private String settingName;

    /** 模板类型（printer_cert=打印机合格证，custom=自定义） */
    @Excel(name = "模板类型", readConverterExp = "p=rinter_cert=打印机合格证，custom=自定义")
    private String templateType;

    /** 纸张尺寸（A4/A5/自定义） */
    @Excel(name = "纸张尺寸", readConverterExp = "A=4/A5/自定义")
    private String paperSize;

    /** 纸张方向（portrait=纵向，landscape=横向） */
    @Excel(name = "纸张方向", readConverterExp = "p=ortrait=纵向，landscape=横向")
    private String paperOrientation;

    /** 左边距(mm) */
    @Excel(name = "左边距(mm)")
    private BigDecimal marginLeft;

    /** 上边距(mm) */
    @Excel(name = "上边距(mm)")
    private BigDecimal marginTop;

    /** 字体名称 */
    @Excel(name = "字体名称")
    private String fontName;

    /** 字体大小(pt) */
    @Excel(name = "字体大小(pt)")
    private Long fontSize;

    /** 标题字体大小(pt) */
    @Excel(name = "标题字体大小(pt)")
    private Long titleFontSize;

    /** LOGO图片路径 */
    @Excel(name = "LOGO图片路径")
    private String logoPath;

    /** 是否默认（1=是，0=否） */
    @Excel(name = "是否默认", readConverterExp = "1==是，0=否")
    private Integer isDefault;

    /** 状态（1=启用，0=禁用） */
    @Excel(name = "状态", readConverterExp = "1==启用，0=禁用")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSettingName(String settingName) 
    {
        this.settingName = settingName;
    }

    public String getSettingName() 
    {
        return settingName;
    }

    public void setTemplateType(String templateType) 
    {
        this.templateType = templateType;
    }

    public String getTemplateType() 
    {
        return templateType;
    }

    public void setPaperSize(String paperSize) 
    {
        this.paperSize = paperSize;
    }

    public String getPaperSize() 
    {
        return paperSize;
    }

    public void setPaperOrientation(String paperOrientation) 
    {
        this.paperOrientation = paperOrientation;
    }

    public String getPaperOrientation() 
    {
        return paperOrientation;
    }

    public void setMarginLeft(BigDecimal marginLeft) 
    {
        this.marginLeft = marginLeft;
    }

    public BigDecimal getMarginLeft() 
    {
        return marginLeft;
    }

    public void setMarginTop(BigDecimal marginTop) 
    {
        this.marginTop = marginTop;
    }

    public BigDecimal getMarginTop() 
    {
        return marginTop;
    }

    public void setFontName(String fontName) 
    {
        this.fontName = fontName;
    }

    public String getFontName() 
    {
        return fontName;
    }

    public void setFontSize(Long fontSize) 
    {
        this.fontSize = fontSize;
    }

    public Long getFontSize() 
    {
        return fontSize;
    }

    public void setTitleFontSize(Long titleFontSize) 
    {
        this.titleFontSize = titleFontSize;
    }

    public Long getTitleFontSize() 
    {
        return titleFontSize;
    }

    public void setLogoPath(String logoPath) 
    {
        this.logoPath = logoPath;
    }

    public String getLogoPath() 
    {
        return logoPath;
    }

    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("settingName", getSettingName())
            .append("templateType", getTemplateType())
            .append("paperSize", getPaperSize())
            .append("paperOrientation", getPaperOrientation())
            .append("marginLeft", getMarginLeft())
            .append("marginTop", getMarginTop())
            .append("fontName", getFontName())
            .append("fontSize", getFontSize())
            .append("titleFontSize", getTitleFontSize())
            .append("logoPath", getLogoPath())
            .append("isDefault", getIsDefault())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
